IconHelper: Avoid warnings for non-existing stock ids
authorAlexander Larsson <alexl@redhat.com>
Thu, 13 Dec 2012 09:08:37 +0000 (10:08 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 13 Dec 2012 09:11:00 +0000 (10:11 +0100)
commit444a92d6d833c0254d554e64e393bfc823d3555f
treed3005745cd8f663c89d5dfbdd964d5b8a1f99988
parent656ec39c295750b18cb299acd258d9f62801bc16
IconHelper: Avoid warnings for non-existing stock ids

There are some registred stock ids like gtk-discards that have no icons,
and you could also pass a non-registred stock id. Both of these means
gtk_style_context_lookup_icon_set returns NULL, which causes
a critical in gtk_icon_set_render_icon_pixbuf.

We avoid this by just making these render as EMPTY.
gtk/gtkiconhelper.c